<script setup lang="tsx">
import { type Component } from 'vue';
import { Nodata } from 'vc/src/web';
interface Props {
  moduleComp: Component;
  emptyJudge?: boolean | number;
  showNodata?: boolean;
}

const { moduleComp, emptyJudge, showNodata } = defineProps<Props>();

defineRender(() => {
  return emptyJudge ? h(moduleComp) : showNodata ? <Nodata type={100} /> : '';
});
</script>
